package sh.grapendaal.tsuushin.module.uno.engine.domain.achievement.impl;

import sh.grapendaal.tsuushin.module.uno.engine.domain.Card.Rank;
import sh.grapendaal.tsuushin.module.uno.engine.domain.achievement.Achievement;
import sh.grapendaal.tsuushin.module.uno.engine.dto.GameState;

public class ThatSoundsBackwardsAchievement extends Achievement {

	@Override
	public String getName() {
		return "That Sounds Backwards";
	}

	@Override
	public String getDescription() {
		return "Play a Reverse.";
	}

	@Override
	public boolean isEarned(GameState gameState) {
		return gameState.getPlayed().getRank() == Rank.REVERSE;
	}

}
